package com.titanrise.crm.common.enums;

public enum LogEffect {
    RESET(0),
    BOLD(1),
    ITALIC(3),
    UNDERLINE(4),
    REVERSE(7),
    HIDE(8),
    BLACK(30),
    RED(31),
    GREEN(32),
    YELLOW(33),
    BLUE(34),
    PURPLE(35),
    CYAN(36),
    WHITE(37),
    BG_BLACK(40),
    BG_RED(41),
    BG_GREEN(42),
    BG_YELLOW(43),
    BG_BLUE(44),
    BG_PURPLE(45),
    BG_CYAN(46),
    BG_WHITE(47);

    private final int effectCode;

    LogEffect(int effectCode) {
        this.effectCode = effectCode;
    }

    public int intValue() {
        return effectCode;
    }

    @Override
    public String toString() {
        return "\u001B[" + effectCode + "m";
    }
}
